package app.agent.presentation

import im.mange.jetboot.bootstrap3.Bootstrap
import im.mange.jetboot.{Css, R, Renderable, Html}
import app.agent.test.Lozenge
import Html._
import Css._
import Bootstrap._

case class SystemRenderer(name: String, version: Option[String] = None, env: Option[String] = None) extends Renderable {
  def render = span(Lozenge(id = "", R(name.toUpperCase + version.fold("")(" - " + _.toUpperCase()) + env.fold("")(" (" + _.toUpperCase() + ")")), "grey")).classes(pullRight).styles(fontSize(xSmall), marginTop("3px")).render
}
